package dbms.query;

import dbms.metadata.TableManager;

public class TablePlan extends Plan {
	String tableName = "";
	ResultSet resultSet;
	
	public TablePlan (String tableName) {
		this.tableName = tableName;
		this.resultSet = TableManager.getTableData(tableName);
	}
	
	public TablePlan (ResultSet resultSet) {
		this.resultSet = resultSet;
	}
	
	public ResultSet execute() {
		resultSet.resultName = tableName;
		return resultSet;
	}
}
